package com.database.mapper;

import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * @Author zhang
 * @create 2022/4/2 15:06
 */
public interface BaseMapper<T, PK extends Serializable> extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T> {

    // 批量插入
    int insertListBatch(@Param("list") List<T> batchList);

    // 查询
    T selectByPrimaryKey(PK id);
}
